<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>广东国防教育学会</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css" />
		<link rel="stylesheet" href="http://idangero.us/swiper/dist/css/swiper.min.css" />
		<link rel="stylesheet" href="/Public/Home/activity/css/style.css" />
	</head>
	<body>


		<div class="bar bar-nav">
			<h1 class="title">会员单位</h1>
			<i class="icon icon-left" onclick="window.history.go(-1);"></i>
		</div>
		
		<nav class="bar bar-tab">
			<a class="tab-item active" href="/">
				<span class="icon icon-home"></span>
				<span class="tab-label">首页</span>
			</a>
			<a class="tab-item" href="<?php echo U('Users/index');?>">
				<span class="icon iconfont icon-account"></span>
				<span class="tab-label">用户中心</span>
			</a>
			<?php if($apply_show): ?><a class="tab-item" href="<?php echo U('Index/applyUserType');?>">
				<span class="icon iconfont icon-renshu"></span>
				<span class="tab-label">我要加入</span>
			</a><?php endif; ?>
		</nav>

		<div class="content">
			<div class="swiper-container swiper-container-horizontal">
				<div class="swiper-wrapper">
					<?php if(is_array($benner)): foreach($benner as $k=>$benner): ?><div class="swiper-slide"><a href="<?php echo ($benner['link']); ?>"><img src="<?php echo ($benner['advert_img']); ?>"></a></div><?php endforeach; endif; ?>
				</div>
				<div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets">
					<span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span>
					<span class="swiper-pagination-bullet"></span>
				</div>
			</div>
			<style>
				#mechanism-tab a{float:left;width:5rem;}
			</style>
			<div class="buttons-tab screen mechanism-tab clearfix" style="marign-top:10px;">
				<div id="mechanism-tab">
				<a class="tab-link button active" href="#a1">
					<!--副会长-->学校
				</a>
				<a class="tab-link button" href="#a2">
					<!--理事--> 国旗联盟
				</a>
				<a class="tab-link button" href="#a3">
					国旗文化
				</a>
				<a class="tab-link button" href="#a4">
					军事运动
				</a>
				<a class="tab-link button" href="#a5">
					国防传媒
				</a>
				<a class="tab-link button" href="#a6">
					军事警觉
				</a>
				</div>
			</div>
			
			<div class="tabs">
				<div class="in_hot_box mechan tab active" id="a1">
				  <div id="user3">
					<?php if(is_array($user3_data)): foreach($user3_data as $k=>$user3): ?><div class="card demo-card-header-pic">
						<a href="<?php echo U('UserCompany/user_detail',array('id'=>$user3['id']));?>">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="<?php echo ($user3['card_img']); ?>" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name"><?php echo ($user3['full_name']); ?></font></p>
								<p class="card-text"><?php echo (htmlspecialchars_decode($user3['introduce'])); ?></p>
							</div>
						</div>
						</a>
					</div><?php endforeach; endif; ?>
				  </div>
				    <?php if($user3_show): ?><div class="infinite-scroll-preloader" id="user3_quan" style="display:none;">
						<div class="preloader"></div>
					 </div>
					<p onclick="ajax_user3_submit();" class="user3_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
					<?php else: ?>
					<p id="load_more"> 暂无数据！</p><?php endif; ?>
				</div>
			
			<div class="in_hot_box mechan tab" id="a2">
				<div id="user4">
					<?php if(is_array($user4_data)): foreach($user4_data as $k=>$user4): ?><div class="card demo-card-header-pic">
						<a href="<?php echo U('UserCompany/user_detail',array('id'=>$user4['id']));?>">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="<?php echo ($user4['card_img']); ?>" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name"><?php echo ($user4['full_name']); ?></font></p>
								<p class="card-text"><?php echo (htmlspecialchars_decode($user4['introduce'])); ?></p>
							</div>
						</div>
						</a>
					</div><?php endforeach; endif; ?>
				</div>
				<?php if($user4_show): ?><div class="infinite-scroll-preloader" id="user4_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user4_submit();" class="user4_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				<?php else: ?>
				<p id="load_more"> 暂无数据！</p><?php endif; ?>
			</div>
			
			<div class="in_hot_box mechan tab" id="a3">
				<div id="user5">
					<?php if(is_array($user5_data)): foreach($user5_data as $k=>$user5): ?><div class="card demo-card-header-pic">
						<a href="<?php echo U('UserCompany/user_detail',array('id'=>$user5['id']));?>">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="<?php echo ($user5['card_img']); ?>" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name"><?php echo ($user5['full_name']); ?></font></p>
								<p class="card-text"><?php echo (htmlspecialchars_decode($user5['introduce'])); ?></p>
							</div>
						</div>
						</a>
					</div><?php endforeach; endif; ?>
				</div>
				<?php if($user5_show): ?><div class="infinite-scroll-preloader" id="user5_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user5_submit();" class="user5_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				<?php else: ?>
				<p id="load_more"> 暂无数据！</p><?php endif; ?>
			</div>
			
			<div class="in_hot_box mechan tab" id="a4">
				<div id="user6">
					<?php if(is_array($user6_data)): foreach($user6_data as $k=>$user6): ?><div class="card demo-card-header-pic">
						<a href="<?php echo U('UserCompany/user_detail',array('id'=>$user6['id']));?>">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="<?php echo ($user6['card_img']); ?>" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name"><?php echo ($user6['full_name']); ?></font></p>
								<p class="card-text"><?php echo (htmlspecialchars_decode($user6['introduce'])); ?></p>
							</div>
						</div>
						</a>
					</div><?php endforeach; endif; ?>
				</div>
				<?php if($user6_show): ?><div class="infinite-scroll-preloader" id="user6_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user6_submit();" class="user6_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				<?php else: ?>
				<p id="load_more"> 暂无数据！</p><?php endif; ?>
			</div>
			
			<div class="in_hot_box mechan tab" id="a5">
				<div id="user7">
					<?php if(is_array($user7_data)): foreach($user7_data as $k=>$user7): ?><div class="card demo-card-header-pic">
						<a href="<?php echo U('UserCompany/user_detail',array('id'=>$user7['id']));?>">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="<?php echo ($user7['card_img']); ?>" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name"><?php echo ($user7['full_name']); ?></font></p>
								<p class="card-text"><?php echo (htmlspecialchars_decode($user7['introduce'])); ?></p>
							</div>
						</div>
						</a>
					</div><?php endforeach; endif; ?>
				</div>
				<?php if($user7_show): ?><div class="infinite-scroll-preloader" id="user7_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user7_submit();" class="user7_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				<?php else: ?>
				<p id="load_more"> 暂无数据！</p><?php endif; ?>
			</div>
			
			<div class="in_hot_box mechan tab" id="a6">
				<div id="user7">
					<?php if(is_array($user8_data)): foreach($user8_data as $k=>$user8): ?><div class="card demo-card-header-pic">
						<a href="<?php echo U('UserCompany/user_detail',array('id'=>$user8['id']));?>">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="<?php echo ($user8['card_img']); ?>" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name"><?php echo ($user8['full_name']); ?></font></p>
								<p class="card-text"><?php echo (htmlspecialchars_decode($user8['introduce'])); ?></p>
							</div>
						</div>
						</a>
					</div><?php endforeach; endif; ?>
				</div>
				<?php if($user8_show): ?><div class="infinite-scroll-preloader" id="user8_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user8_submit();" class="user8_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				<?php else: ?>
				<p id="load_more"> 暂无数据！</p><?php endif; ?>
			</div>
			
			
			
			</div>
		</div>
		

		<script type="text/javascript" src="http://g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
		<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
		<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
		<script src="http://idangero.us/swiper/dist/js/swiper.min.js"></script>
		<script type="text/javascript" src="/Public/Home/activity/js/huodon.js" ></script>
		<script>
			
			var swiper = new Swiper('.swiper-container', {
				pagination: '.swiper-pagination',
				paginationClickable: true,
				loop:true,    
				grabCursor: true,
				autoplay: 3000
			});
			
			 /* $(document).on('click','.open-preloader', function () {
				 Zepto.showPreloader('加载中...')
				    setTimeout(function () {
				    	 Zepto.hidePreloader();
				    }, 2000); 
			 }); */
			 $(document).on('click','.open-indicator', function () {
				 Zepto.showIndicator();
			     setTimeout(function () {
			    	Zepto.hideIndicator();
			     }, 2000);
			  });
		</script>
		

	</body>

</html>

<script>
var  page_user3 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user3_submit()
{	 	 	 
	    $("#user3_quan").show();
	    page_user3 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userThree/is_ajax/1/p/"+page_user3,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user3_quan").hide();
				if($.trim(data) == ''){
					$('.user3_more').hide();
				}else{
				    $("#user3").append(data);
				}
			}
		}); 
} 
var  page_user4 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user4_submit()
{	 	 	 
	    $("#user4_quan").show();
	    page_user4 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userFor/is_ajax/1/p/"+page_user4,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user4_quan").hide();
				if($.trim(data) == ''){
					$('.user4_more').hide();
				}else{
				    $("#user4").append(data);
				}
			}
		}); 
} 
var  page_user5 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user5_submit()
{	 	 	 
	    $("#user5_quan").show();
	    page_user5 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userFive/is_ajax/1/p/"+page_user5,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user5_quan").hide();
				if($.trim(data) == ''){
					$('.user5_more').hide();
				}else{
				    $("#user5").append(data);
				}
			}
		}); 
} 
var  page_user6 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user6_submit()
{	 	 	 
	    $("#user6_quan").show();
	    page_user6 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userSix/is_ajax/1/p/"+page_user6,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user6_quan").hide();
				if($.trim(data) == ''){
					$('.user6_more').hide();
				}else{
				    $("#user6").append(data);
				}
			}
		}); 
} 
var  page_user7 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user7_submit()
{	 	 	 
	    $("#user7_quan").show();
	    page_user7 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userSeven/is_ajax/1/p/"+page_user7,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user7_quan").hide();
				if($.trim(data) == ''){
					$('.user7_more').hide();
				}else{
				    $("#user7").append(data);
				}
			}
		}); 
} 
var  page_user8 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user8_submit()
{	 	 	 
	    $("#user8_quan").show();
	    page_user8 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userEight/is_ajax/1/p/"+page_user8,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user8_quan").hide();
				if($.trim(data) == ''){
					$('.user8_more').hide();
				}else{
				    $("#user8").append(data);
				}
			}
		}); 
} 


window.onload=function(){
	var oTab=document.getElementById("mechanism-tab")
	var oTabLi=oTab.getElementsByTagName("a");
	var Width=oTabLi.length*5+"rem";
	oTab.style.width=Width
}
</script>